package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the customer_pal database table.
 * 
 */
@Entity
@Table(name="customer_pal")
public class CustomerPal implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String comment;

	@Column(name="lm_timestamp")
	private Timestamp lmTimestamp;

	private String name;
	@OneToMany(mappedBy="customerPal")
	private List<CustomerNurse> customerNurses;
	//bi-directional many-to-one association to Customer
	@OneToMany(mappedBy="customerPal")
	private List<Customer> customers;

	@OneToMany(mappedBy="customerPal")
	private List<Rni> rnis;
	
	public CustomerPal() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getLmTimestamp() {
		return this.lmTimestamp;
	}

	public void setLmTimestamp(Timestamp lmTimestamp) {
		this.lmTimestamp = lmTimestamp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Customer> getCustomers() {
		return this.customers;
	}

	public void setCustomers(List<Customer> customers) {
		this.customers = customers;
	}

	public List<CustomerNurse> getCustomerNurses() {
		return customerNurses;
	}

	public void setCustomerNurses(List<CustomerNurse> customerNurses) {
		this.customerNurses = customerNurses;
	}

	public List<Rni> getRnis() {
		return rnis;
	}

	public void setRnis(List<Rni> rnis) {
		this.rnis = rnis;
	}
}